/**
 * 扑克对象
 */
var Poke = {
	suits : ["黑桃","红桃","梅花","方块"],
	names : ["A","2","3","4","5","6","7","8","9","10","J","Q","K"],
	cards : [],
	init:function(){
		this.cards = [];
		for(var i=0;i<4;i++){
			for(var j=0;j<13;j++){
				this.cards.push(new Card(this.suits[i], this.names[j], (j>=10) ? 10:(j+1)));
			}
		}
	}
	
	,deal:function(){
		var random = Math.random();
		var value = parseInt(random * this.cards.length);
		var card = this.cards[value];
		this.cards.splice(value, 1);
		return card;
	}
};